import request from '@/utils/request'

const acceptance = {
  preList(params) {
    return request.get(`/kjsf/project/preAcceptanceList`, {params});
  },
  preMyList(params) {
    return request.get(`/kjsf/project/myPreAcceptanceList`, {params});
  },
  preAdd(data){
    return request.post(`/kjsf/projectPreAcceptanceApply/add`,data);
  },
  preGet(id){
    return request.get(`/kjsf/projectPreAcceptanceApply/detail/${id}`);
  },
  preUpdate(data){
    return request.post(`/kjsf/projectPreAcceptanceApply/update`,data);
  },
  preGetByProject(id){
    return request.get(`/kjsf/projectPreAcceptanceApply/getByProjectId/${id}`);
  },
  preSubmit(data){
    return request.post('/kjsf/projectPreAcceptanceApply/submit', data);
  },
  list(params) {
    return request.get(`/kjsf/project/acceptanceList`, {params});
  },
  myList(params) {
    return request.get(`/kjsf/project/myAcceptanceList`, {params});
  },
  add(data){
    return request.post(`/kjsf/projectAcceptanceApply/add`,data);
  },
  get(id){
    return request.get(`/kjsf/projectAcceptanceApply/detail/${id}`);
  },
  update(data){
    return request.post(`/kjsf/projectAcceptanceApply/update`,data);
  },
  getByProject(id){
    return request.get(`/kjsf/projectAcceptanceApply/getByProjectId/${id}`);
  },
  submit(data){
    return request.post('/kjsf/projectAcceptanceApply/submit', data);
  },

}
export default acceptance;
